package com.nulstudio.sppm.Dao;

import com.nulstudio.sppm.Entities.SupplierInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface SupplierMapper {
    public List<SupplierInfo> getAllSuppliers();

    @Options(useGeneratedKeys = true, keyProperty = "id")
    public int addSupplier(SupplierInfo supplierInfo);
    public int deleteSupplier(int id);
    public int getIdByInfo(SupplierInfo info);
    public int modifySupplier(SupplierInfo request);
    public int getLastId();
}
